/* 
 * File:   Mod.h
 * Author: Gab'z
 *
 * Created on 3 juin 2012, 22:43
 */

#ifndef MOD_H
#define	MOD_H

#include "BinaryOperator.h"

namespace calculator {

    class Mod : public BinaryOperator {
        friend class CommandMap;

    public:
        virtual ~Mod();
        std::string isExecutable() const;
        
        Mod* clone() const;

        const Number* apply(const Number* n1, const Number* n2) const throw (ArithmeticException);

    private:
        Mod(const std::string name);
        Mod(const Mod& orig);
    };
}

#endif	/* MOD_H */

